﻿namespace Memento
{
    internal class Memento
    {
        private readonly int money;
        private readonly List<string> fruits;

        public Memento(int money)
        {
            this.money = money;
            this.fruits = new List<string>();
        }  

        public int GetMoney()
        {
            return this.money;
        }

        public List<string> GetFruits() 
        {
            return this.fruits;
        }

        public void AddFruit(string fruit) 
        {
            this.fruits.Add(fruit);
        }
    }
}
